c program to calculate the power of a number